package com.ftg.learn.psi.service.impl;

import com.ftg.learn.psi.entity.Emp;
import com.ftg.learn.psi.mapper.EmpMapper;
import com.ftg.learn.psi.service.IEmpService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 员工表 服务实现类
 * </p>
 *
 * @author guoBingTong
 * @since 2022-05-18
 */
@Service
public class EmpServiceImpl extends ServiceImpl<EmpMapper, Emp> implements IEmpService {

    @Autowired
    EmpMapper empMapper;


    /**
     * 查询所有员工的姓名及id
     * @return
     */
    @Override
    public List<Emp> findEmpIdAndName() {
        return empMapper.findEmpIdAndName();
    }
}
